<?php 
namespace app\common\validate;

use think\Validate;

class Education extends Validate
{
	protected $rule = [
			'school_name'  =>  'require',
			'admission_time' =>  'require',
			'graduation_time' =>  'require',
			'graduation' =>  'require',
			'bachelor' =>  'require',
			'education' =>  'require',
	];
	
	protected $message = [
			'school_name.require'  =>  '毕业学校不能为空',
			'admission_time.require' =>  '入学时间不能为空',
			'graduation_time.require' =>  '毕业时间不能为空',
			'graduation.require' =>  '专业不能为空',
			'bachelor.require' =>  '学位不能为空',
			'education.require' =>  '学历不能为空',
	];
	
	protected $scene = [
			'add'   =>  ['school_name','admission_time','graduation_time','graduation','bachelor','education'],
	];
}